package com.hellobike.haxing.modules.order.service;

import com.hellobike.haxing.modules.order.entity.OrderDetail;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 订单明细
 * @Author: haxing-boot
 * @Date:   2020-02-08
 * @Version: V1.0
 */
public interface IOrderDetailService extends IService<OrderDetail> {
    /**
     * 查询订单明细
     * @param orderId
     * @return
     */
    List<OrderDetail> queryDetailList(Long orderId);

    /**
     * 返回商品明细库存
     *
     * @param shopId
     */
    void returnOrderDetailStock(Long orderId, Long shopId) throws Exception;
}
